home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / graphics / manythng.zip / SETUP.FRM < prev    next >
Text File  |  1993-04-15  |  6KB  |  181 lines

  1. VERSION 2.00
  2. Begin Form SetupForm 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Many Things"
  5.    Height          =   4140
  6.    Left            =   1116
  7.    LinkTopic       =   "Form2"
  8.    MaxButton       =   0   'False
  9.    MinButton       =   0   'False
  10.    ScaleHeight     =   3720
  11.    ScaleWidth      =   4668
  12.    Top             =   552
  13.    Width           =   4764
  14.    Begin TextBox txtMaxCums 
  15.       Height          =   288
  16.       Left            =   3600
  17.       TabIndex        =   12
  18.       Text            =   "1000"
  19.       Top             =   2760
  20.       Width           =   612
  21.    End
  22.    Begin TextBox txtChangeMin 
  23.       Height          =   288
  24.       Left            =   3600
  25.       TabIndex        =   10
  26.       Text            =   "5"
  27.       Top             =   2400
  28.       Width           =   612
  29.    End
  30.    Begin TextBox txtRepeatCount 
  31.       Height          =   288
  32.       Left            =   3600
  33.       TabIndex        =   8
  34.       Text            =   "10"
  35.       Top             =   2040
  36.       Width           =   612
  37.    End
  38.    Begin TextBox txtMaxLines 
  39.       Height          =   288
  40.       Left            =   3600
  41.       MaxLength       =   3
  42.       TabIndex        =   0
  43.       Text            =   "100"
  44.       Top             =   1680
  45.       Width           =   612
  46.    End
  47.    Begin CommandButton cmdCancel 
  48.       Cancel          =   -1  'True
  49.       Caption         =   "Cancel"
  50.       Height          =   372
  51.       Left            =   2520
  52.       TabIndex        =   5
  53.       Top             =   3240
  54.       Width           =   1092
  55.    End
  56.    Begin CommandButton cmdOK 
  57.       Caption         =   "OK"
  58.       Default         =   -1  'True
  59.       Height          =   372
  60.       Left            =   1320
  61.       TabIndex        =   4
  62.       Top             =   3240
  63.       Width           =   1092
  64.    End
  65.    Begin Label Label7 
  66.       Caption         =   "Maximum number of lines for cumulatives:"
  67.       Height          =   252
  68.       Left            =   120
  69.       TabIndex        =   11
  70.       Top             =   2760
  71.       Width           =   3492
  72.    End
  73.    Begin Label Label6 
  74.       Caption         =   "Minutes before changing format:"
  75.       Height          =   252
  76.       Left            =   900
  77.       TabIndex        =   9
  78.       Top             =   2412
  79.       Width           =   2772
  80.    End
  81.    Begin Label Label5 
  82.       Caption         =   "Number of lines before changing colors:"
  83.       Height          =   252
  84.       Left            =   240
  85.       TabIndex        =   7
  86.       Top             =   2040
  87.       Width           =   3372
  88.    End
  89.    Begin Label Label4 
  90.       Alignment       =   1  'Right Justify
  91.       Caption         =   "Maximum number of lines:"
  92.       Height          =   252
  93.       Left            =   900
  94.       TabIndex        =   6
  95.       Top             =   1728
  96.       Width           =   2652
  97.    End
  98.    Begin Image Image1 
  99.       Height          =   384
  100.       Left            =   120
  101.       Picture         =   SETUP.FRX:0000
  102.       Top             =   120
  103.       Width           =   384
  104.    End
  105.    Begin Label Label3 
  106.       Alignment       =   2  'Center
  107.       Caption         =   "Based on an example in, ""Learn Programming and Visual Basic with John Socha"" (recommended)"
  108.       FontBold        =   0   'False
  109.       FontItalic      =   0   'False
  110.       FontName        =   "MS Sans Serif"
  111.       FontSize        =   7.8
  112.       FontStrikethru  =   0   'False
  113.       FontUnderline   =   0   'False
  114.       Height          =   552
  115.       Left            =   720
  116.       TabIndex        =   3
  117.       Top             =   396
  118.       Width           =   3408
  119.    End
  120.    Begin Label Label2 
  121.       Caption         =   "Multiple Screen Savers by  Bruce McLean"
  122.       Height          =   252
  123.       Left            =   720
  124.       TabIndex        =   2
  125.       Top             =   120
  126.       Width           =   3972
  127.    End
  128.    Begin Label Label1 
  129.       Alignment       =   2  'Center
  130.       Caption         =   "This is a collection of screen savers that switch at regular intervals to add a bit of variety to the screen."
  131.       FontBold        =   0   'False
  132.       FontItalic      =   0   'False
  133.       FontName        =   "MS Sans Serif"
  134.       FontSize        =   7.8
  135.       FontStrikethru  =   0   'False
  136.       FontUnderline   =   0   'False
  137.       Height          =   492
  138.       Left            =   360
  139.       TabIndex        =   1
  140.       Top             =   1080
  141.       Width           =   3852
  142.    End
  143. End
  144. Option Explicit
  145.  
  146. Sub cmdCancel_Click ()
  147.     
  148.     End ' end program
  149.  
  150. End Sub
  151.  
  152. Sub cmdOK_Click ()
  153.     Dim i As Integer
  154.  
  155.     ' store setup data in control.ini
  156.     i = WritePrivateProfileString(secName, keyName, txtMaxLines, iniName)
  157.     i = WritePrivateProfileString(secName, RepeatName, txtRepeatCount, iniName)
  158.     i = WritePrivateProfileString(secName, ChangeMinutesName, txtChangeMin, iniName)
  159.     i = WritePrivateProfileString(secName, MaxCumsName, txtMaxCums, iniName)
  160.  
  161.     End ' end program
  162.  
  163. End Sub
  164.  
  165. Sub Form_Load ()
  166.     txtMaxLines = maxLines      ' Set to current max lines
  167.     txtRepeatCount = RepeatCount
  168.     txtChangeMin = MaxChangeMinutes
  169.     txtMaxCums = MaxCums
  170.     txtMaxLines.SelLength = 3   ' Select the current value
  171. End Sub
  172.  
  173. Sub txtMaxLines_KeyPress (KeyAscii As Integer)
  174.     If KeyAscii < 32 Then
  175.         '                       ' Let Ctrl keys pass through
  176.     ElseIf KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then
  177.         KeyAscii = 0            ' Discard chars other than digits
  178.     End If
  179. End Sub
  180.  
  181.